export function getComponentByUrl(name) {
    const getComponentPath = (resolve) => import(
        /* webpackInclude: /\.(js|jsx|vue)$/ */
        /* webpackExclude: /\.noimport\.js$/ */
        `./src/${name}`
    ).then(resolve)
    return new Promise(resolve => {
        getComponentPath(resolve)
    })
}